<?php

class Application_Form_Project extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    }
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('project');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $title = new Zend_Form_Element_Text('title');
        $title->setLabel('标题')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->setAttrib('class', 'text-long')
              ->addValidator('NotEmpty');
              
       $type = new Zend_Form_Element_Radio('type'); 
       $type->setLabel('项目类型:') 
                  ->addMultiOptions(
                  array('0' => '开发', 
                               '1' => '维护')) 
                 ->setSeparator(''); 



        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        //$this->addElements(array($id, $title,$type,$alils,$picture1,$picture2,$projectDetail,$projectStartDatetime,$createByID,$csrCount,$currentStatus,$attach1,$attach2, $submit));
        $this->addElements(array($id, $title,$type,$submit));
    }
    
}

